<template>
  <div>
      <p>{{huo}}天</p>
  </div>
</template>

<script>
export default {
  computed: {
    huo () {
      const wdate = +new Date('1999-07-27')
      const xdate = +new Date()
      const he = xdate - wdate
      const huole = he / 1000 / 60 / 60 / 24
      return huole
    }
  }

}
// const name = prompt("请输入你的出生日期"，)
</script>

<style>

</style>
